$OpenBSD: patch-admin_ltmain_sh,v 1.1 2003/02/08 12:37:50 espie Exp $
--- admin/ltmain.sh.orig	Sun Jan  5 16:49:09 2003
+++ admin/ltmain.sh	Sun Jan  5 17:04:25 2003
@@ -1249,6 +1249,17 @@ EOF
 	continue
 	;;
 
+      -pthread)
+        case $host in
+        *-*-openbsd*)
+          deplibs="$deplibs $arg"
+          ;;
+        *)
+          continue
+          ;;
+        esac
+        ;;
+
       -module)
 	module=yes
 	continue
@@ -1841,6 +1852,20 @@ EOF
 	  fi
 	  continue
 	  ;;
+        -pthread)
+          case $linkmode in
+          lib)
+            deplibs="$deplib $deplibs"
+            newdependency_libs="$deplib $newdependency_libs"
+            ;;
+          prog)
+            compile_deplibs="$deplib $compile_deplibs"
+            finalize_deplibs="$deplib $finalize_deplibs"
+            ;;
+          esac
+          continue
+          ;;
+
 	%DEPLIBS%)
 	  alldeplibs=yes
 	  continue
